package com.luying.dao;

import com.luying.pojo.Class;
import com.luying.pojo.PageQuery;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface ClassDao extends Mapper<Class> {

    List<Class> selectPage(@Param("query") PageQuery pageQuery);

    int deleteById(@Param("id") Integer id);

    int updateById(@Param("aclass") Class aclass);

    int selectClassAndSubjectByClassId(@Param("id")Integer id);

    int selectTeacherJobByClassId(@Param("id")Integer id);

    int selectStudentByClassId(@Param("id")Integer id);

    int selectClassAndSubjectBySubjectId(@Param("id")Integer id);

    int selectTeacherJobBySubjectId(@Param("id")Integer id);

}
